package com.scau.clothes.stock.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.scau.clothes.core.core.entity.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@TableName("clothes")
public class Clothes extends BaseEntity implements Serializable {

    /**
     * 服装id
     */
    @TableId(value = "clothes_id",type = IdType.AUTO)
    private Long clothesId;

    /**
     * 类别id
     */
    private Long categoryId;

    /**
     * 服装编号
     */
    private String clothesNumber;

    /**
     * 服装名字
     */
    private String clothesName;

    /**
     * 品牌
     */
    private String brand;

    /**
     * 适用人群
     */
    private String adapt;

    /**
     * 适用季节
     */
    private String season;

    /**
     * 折扣状态
     */
    private String discountStatus;

    /**
     * 图片路径
     */
    private String url;

    /**
     * 逻辑删除
     */
    private Integer isDelete;

    /**
     * 类别
     */
    @TableField(exist = false)
    private Category category;

    /**
     * 规格
     */
    @TableField(exist = false)
    private List<ClothesNorm> clothesNorms;
}
